package com.gopay.common.domain.gsrt;
// Generated 2016-1-16 17:20:08 by Hibernate Tools 4.3.1.Final

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 流标信息子表
 */
@Entity
@Table(name = "GSRT_FAILURE_BIDS_SUB")
public class GsrtFailureBidsSub implements java.io.Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 
     * 流标信息ID
     */
    private Long id;

    private String failureBidsMasterId;

    /** 
     * 商户订单号
     */
    private String merOrderId;

    private String investOrderId;

    /** 
     * 付款方客户ID
     */
    private String payCustId;

    /** 
     * 付款方账户
     */
    private String payAcct;

    /** 
     * 主收款方客户ID
     */
    private String mainRecvCustId;

    /** 
     * 用户主收款方账户
     */
    private String mainRecvAcct;
    
   

    /** 
     * 商户id
     */
    private String merCustId;

    /** 
     * 商户提交时间
     */
    private Date merTxnTm;

    /** 
     * 交易状态
     */
    private Integer txnStaCd;

    /** 
     * 投资方协议号--------签约协议号
     */
    private String constracterId;

    /** 
     * 流标状态------01 成功  ;02进行中 ;03 失败
     */
    private String lastBidsState;

    /** 
     * 用户金额
     */
    private BigDecimal merTxnAmt;

    /** 
     * 平台金额
     */
    private BigDecimal terracePayAmt;

    /** 
     * 记录最后修改时间
     */
    private Date lastUpdTs;

    /** 
     * 交易原因
     */
    private String commentRk;

    /** 
     * 创建时间
     */
    private Date createdTs;

    /** 
     * 交易原因
     */
    private String remark;

    /** 
     * 请求报文上传的备注信息
     */
    private String remarkMsg;

    /** 
     * 预留字段3
     */
    private String remark3;

    /** 
     * 预留字段2
     */
    private String remark2;

    /** 
     * 乐观锁版本号
     */
    private Long version;

    /** 
     * 国付宝交易时间
     */
    private Date gopayTxnTm;

    /** 
     * 国付宝订单号
     */
    private String gopayOrderId;
    
    /** 
     * 平台主收款方账户
     */
    private String terraceMainRecvAcct;
    
    /** 
	 * 交易处理完成时间
	 */
    private Date tranFinishTime;

    public GsrtFailureBidsSub() {
    }

    

	@Id
    @SequenceGenerator(name = "GsrtFailureBidsSubSequence", sequenceName = "GSRT_FAILURE_BIDS_SUB_SEQ")
    @GeneratedValue(generator = "GsrtFailureBidsSubSequence", strategy = GenerationType.SEQUENCE)
    @Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "FAILURE_BIDS_MASTER_ID", nullable = false, length = 10)
    public String getFailureBidsMasterId() {
        return this.failureBidsMasterId;
    }

    public void setFailureBidsMasterId(String failureBidsMasterId) {
        this.failureBidsMasterId = failureBidsMasterId;
    }

    @Column(name = "MER_ORDER_ID", nullable = false, length = 30)
    public String getMerOrderId() {
        return this.merOrderId;
    }

    public void setMerOrderId(String merOrderId) {
        this.merOrderId = merOrderId;
    }

    @Column(name = "INVEST_ORDER_ID", nullable = false, length = 30)
    public String getInvestOrderId() {
        return this.investOrderId;
    }

    public void setInvestOrderId(String investOrderId) {
        this.investOrderId = investOrderId;
    }

    @Column(name = "PAY_CUST_ID", nullable = false, length = 10)
    public String getPayCustId() {
        return this.payCustId;
    }

    public void setPayCustId(String payCustId) {
        this.payCustId = payCustId;
    }

    @Column(name = "PAY_ACCT", nullable = false, length = 10)
    public String getPayAcct() {
        return this.payAcct;
    }

    public void setPayAcct(String payAcct) {
        this.payAcct = payAcct;
    }

    @Column(name = "MAIN_RECV_CUST_ID",  length = 19)
    public String getMainRecvCustId() {
        return this.mainRecvCustId;
    }

    public void setMainRecvCustId(String mainRecvCustId) {
        this.mainRecvCustId = mainRecvCustId;
    }

    @Column(name = "MAIN_RECV_ACCT", length = 19)
    public String getMainRecvAcct() {
        return this.mainRecvAcct;
    }

    public void setMainRecvAcct(String mainRecvAcct) {
        this.mainRecvAcct = mainRecvAcct;
    }

    @Column(name = "MER_CUST_ID", nullable = false, length = 10)
    public String getMerCustId() {
        return this.merCustId;
    }

    public void setMerCustId(String merCustId) {
        this.merCustId = merCustId;
    }

    @Column(name = "MER_TXN_TM", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getMerTxnTm() {
        return this.merTxnTm;
    }

    public void setMerTxnTm(Date merTxnTm) {
        this.merTxnTm = merTxnTm;
    }

    @Column(name = "TXN_STA_CD", precision = 5, scale = 0)
    public Integer getTxnStaCd() {
        return this.txnStaCd;
    }

    public void setTxnStaCd(Integer txnStaCd) {
        this.txnStaCd = txnStaCd;
    }

    @Column(name = "CONSTRACTER_ID", nullable = false, length = 14)
    public String getConstracterId() {
        return this.constracterId;
    }

    public void setConstracterId(String constracterId) {
        this.constracterId = constracterId;
    }

    @Column(name = "LAST_BIDS_STATE", nullable = false, length = 20)
    public String getLastBidsState() {
        return this.lastBidsState;
    }

    public void setLastBidsState(String lastBidsState) {
        this.lastBidsState = lastBidsState;
    }

    @Column(name = "MER_TXN_AMT", nullable = false, precision = 20)
    public BigDecimal getMerTxnAmt() {
        return this.merTxnAmt;
    }

    public void setMerTxnAmt(BigDecimal merTxnAmt) {
        this.merTxnAmt = merTxnAmt;
    }

    @Column(name = "TERRACE_PAY_AMT", nullable = false, precision = 20)
    public BigDecimal getTerracePayAmt() {
        return this.terracePayAmt;
    }

    public void setTerracePayAmt(BigDecimal terracePayAmt) {
        this.terracePayAmt = terracePayAmt;
    }

    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "COMMENT_RK", length = 90)
    public String getCommentRk() {
        return this.commentRk;
    }

    public void setCommentRk(String commentRk) {
        this.commentRk = commentRk;
    }

    @Column(name = "CREATED_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "REMARK", length = 50)
    public String getRemark() {
		return remark;
	}



	public void setRemark(String remark) {
		this.remark = remark;
	}

    @Column(name = "REMARK_MSG", length = 50)
    public String getRemarkMsg() {
        return this.remarkMsg;
    }

    



	public void setRemarkMsg(String remarkMsg) {
        this.remarkMsg = remarkMsg;
    }

    @Column(name = "REMARK3", length = 50)
    public String getRemark3() {
        return this.remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    @Column(name = "REMARK2", length = 50)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    @Column(name = "VERSION", precision = 22, scale = 0)
    public Long getVersion() {
        return this.version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Column(name = "GOPAY_TXN_TM", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getGopayTxnTm() {
        return this.gopayTxnTm;
    }

    public void setGopayTxnTm(Date gopayTxnTm) {
        this.gopayTxnTm = gopayTxnTm;
    }

    @Column(name = "GOPAY_ORDER_ID", nullable = false, length = 30)
    public String getGopayOrderId() {
        return this.gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    @Column(name = "TERRACE_MAIN_RECV_ACCT", length = 19)
	public String getTerraceMainRecvAcct() {
		return terraceMainRecvAcct;
	}

	public void setTerraceMainRecvAcct(String terraceMainRecvAcct) {
		this.terraceMainRecvAcct = terraceMainRecvAcct;
	}

	@Column(name = "TRAN_FINISH_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getTranFinishTime() {
		return this.tranFinishTime;
	}

	public void setTranFinishTime(Date tranFinishTime) {
		this.tranFinishTime = tranFinishTime;
	}
	

}
